import http from "@/api";
import {EnvelopeModel} from "@/models/guestModel";
import {ResultData} from "@/api/utils/models.ts";

// 获取加密秘钥
export const envelopeApi = () => {
    return http.get<EnvelopeModel>('/v1/guest/envelope/key');
};
// 验证码
export const getCaptchaApi = () => {
    return http.get<ResultData>('/v1/guest/captcha/image');
};
// 邮箱验证码
export const sendEmailCaptcha = (params: { email?: string }) => {
    return http.post<ResultData>('/v1/guest/captcha/code', params);
};